|
|
|
|
|
|
|
Figure 8.4.
The results of the descending ORDER BY clause. |
|
|
|
|
|
|
|
|
Figure 8.5.
Results of multiple-column ORDER BY clause. |
|
|
|
|
|
|
|
|
One of the most powerful aspects of the SELECT_FROM statement is its capability to control the content of the result set using the WHERE clause. There are two ways to use the WHERE clause to control the content of the result set: |
|
|
|
|
|
|
|
|
· Use WHERE to limit the contents of a result set. |
|
|
|
|
|
|
|
|
· Use WHERE to link two or more tables in a single result set. |
|
|
|
|
|
|
|
|
Using WHERE to Limit the Result Set |
|
|
|
|
|
|
|
|
The WHERE clause enables you to perform logical comparisons on data in any column in the data table. In its simplest form, the WHERE clause consists of the following: |
|
|
|
|
|